package com.weisy.signin.bean;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

/**
 * @author weisy
 * @function 签到记录实体类
 * @date 2019/3/23 14:06
 */
public class Sign extends LitePalSupport {
    //签到学号
    private String studentId;
    //签到姓名
    private String name;
    private String imgUrl;
    //联系方式
    private String phone;
    //签到设备（保证一台手机只能一个用户签到）
    private String device;
    //签到课程
    private String signCourse;
    //签到时间
    private String signTime;
    //签到结果描述
    @Column(ignore = true)
    private String result;

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getSignCourse() {
        return signCourse;
    }

    public void setSignCourse(String signCourse) {
        this.signCourse = signCourse;
    }

    public String getSignTime() {
        return signTime;
    }

    public void setSignTime(String signTime) {
        this.signTime = signTime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "\"Sign\": {" +
                "\"studentId\": \"" + studentId + '\"' +
                ", \"name\": \"" + name + '\"' +
                ", \"phone\": \"" + phone + '\"' +
                ", \"device\": \"" + device + '\"' +
                ", \"signCourse\": \"" + signCourse + '\"' +
                ", \"signTime\": \"" + signTime + '\"' +
                '}';
    }
}
